b01a255aeb100e44bd30715ea9fea1b9623f8c2d,apps/letschat/src/main/java/io/fabric8/app/letschat/LetschatModelProcessor.java,LetschatModelProcessor,create,#,12
Before Change
.addNewParameter().withName("LETSCHAT_DEFAULT_ROOMS").withValue("fabric8_default")
.withDescription("Default rooms to create and for hubot to join").endParameter()
.addNewParameter().withName("LETSCHAT_HUBOT_PASSWORD").withValue("RedHat$1")
.withDescription("The password for Hubot to login to Let's Chat").endParameter()
.addNewParameter().withName("LETSCHAT_HUBOT_TOKEN")
.withValue("NTU4MmUwNWU4YzUzZDUwZTAwMmJiZWVhOjllMTJlMDM3YzdjYjNjODZkOGE3MDNlNWZlZDhjOGVjYzA2NDdjMmNkNDAwNzk3Nw==")
.withDescription("The token for Hubot to login to Let's Chat").endParameter()
.addNewReplicationControllerObject()
.withNewMetadata()
.withName(NAME)
.addToLabels("name", NAME)
.endMetadata()
.withNewSpec()
.addToSelector("name", NAME)
.withReplicas(1)
.withNewTemplate()
.withNewMetadata()
.withName(NAME)
.addToLabels("name", NAME)
.endMetadata()
.withNewSpec()
.addNewContainer()
.withName("letschat-mongodb")
.withImage("mongo")
.addNewPort()
.withContainerPort(27017)
.withProtocol("TCP")
.endPort()
.endContainer()
.addNewContainer()
.withName(NAME)
.withImage("fabric8/lets-chat")
.addNewPort()
.withContainerPort(5000)
.withProtocol("TCP")
.endPort()
.addNewEnv().withName("LETSCHAT_CREATE_HUBOT_USER").withValue("true").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_TOKEN").withValue("${LETSCHAT_HUBOT_TOKEN}").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_PASSWORD").withValue("${LETSCHAT_HUBOT_PASSWORD}").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_USERNAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_EMAIL").withValue("fabric8-admin@googlegroups.com").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_FIRST_NAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_LAST_NAME").withValue("rocks").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_DISPLAY_NAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_DEFAULT_ROOMS").withValue("${LETSCHAT_DEFAULT_ROOMS}").endEnv()
.addNewEnv().withName("LCB_NOROBOTS").withValue("false").endEnv()
.addNewEnv().withName("LCB_FILES_ENABLE").withValue("true").endEnv()
.addNewEnv().withName("LCB_DATABASE_URI").withValue("mongodb://127.0.0.1:27017/letschat").endEnv()
.endContainer()
.endSpec()
.endTemplate()
.endSpec()
After Change
.addNewParameter().withName("LETSCHAT_DEFAULT_ROOMS").withValue("fabric8_default")
.withDescription("Default rooms to create and for hubot to join").endParameter()
.addNewParameter().withName("LETSCHAT_HUBOT_PASSWORD").withValue("RedHat$1")
.withDescription("The password for Hubot to login to Let's Chat").endParameter()
.addNewReplicationControllerObject()
.withNewMetadata()
.withName(NAME)
.addToLabels("name", NAME)
.endMetadata()
.withNewSpec()
.addToSelector("name", NAME)
.withReplicas(1)
.withNewTemplate()
.withNewMetadata()
.withName(NAME)
.addToLabels("name", NAME)
.endMetadata()
.withNewSpec()
.addNewContainer()
.withName("letschat-mongodb")
.withImage("mongo")
.addNewPort()
.withContainerPort(27017)
.withProtocol("TCP")
.endPort()
.endContainer()
.addNewContainer()
.withName(NAME)
.withImage("fabric8/lets-chat")
.addNewPort()
.withContainerPort(5000)
.withProtocol("TCP")
.endPort()
.addNewEnv().withName("LETSCHAT_CREATE_HUBOT_USER").withValue("true").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_TOKEN").withValue("${LETSCHAT_HUBOT_TOKEN}").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_PASSWORD").withValue("${LETSCHAT_HUBOT_PASSWORD}").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_USERNAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_EMAIL").withValue("fabric8-admin@googlegroups.com").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_FIRST_NAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_LAST_NAME").withValue("rocks").endEnv()
.addNewEnv().withName("LETSCHAT_HUBOT_DISPLAY_NAME").withValue("fabric8").endEnv()
.addNewEnv().withName("LETSCHAT_DEFAULT_ROOMS").withValue("${LETSCHAT_DEFAULT_ROOMS}").endEnv()
.addNewEnv().withName("LCB_NOROBOTS").withValue("false").endEnv()
.addNewEnv().withName("LCB_FILES_ENABLE").withValue("true").endEnv()
.addNewEnv().withName("LCB_DATABASE_URI").withValue("mongodb://127.0.0.1:27017/letschat").endEnv()
.endContainer()
.endSpec()
.endTemplate()
.endSpec()